package com.project.bean;

import java.time.LocalDate;

public class StudentBean {
    private Integer id;
    private String studentName;
    private String phone;
    private LocalDate birthday;
    private Integer grade;

    public StudentBean() {
    }

    public StudentBean(String studentName, String phone, LocalDate birthday, Integer grade) {
        this.studentName = studentName;
        this.phone = phone;
        this.birthday = birthday;
        this.grade = grade;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", studentName='" + studentName + '\'' +
                ", phone='" + phone + '\'' +
                ", birthday=" + birthday +
                ", grade=" + grade +
                '}' + "\n";
    }
}
